<?php // no direct access
defined('_JEXEC') or die('Restricted access'); ?>
<?php
	$base_url=JURI::base(true)."/templates/hrv/assets/";
	$id=JRequest::getVar('id','','int');
	if($this->article->catid == 12 ){
		$id=4;	
	}
	$cid			= 3 ;
	$db =& JFactory::getDBO();
	$sql="SELECT * FROM #__content AS c
	WHERE c.catid=".(int)$cid."
	AND c.state = 1 ORDER BY c.ordering ASC LIMIT 0,4";
	$db->setQuery($sql);
	$result=$db->loadObjectList();
?>

<div class="bg_tt_omos">
	<?php foreach($result as $key => $row):?>
	<div class="float_left p15t m5l"><a <?php if($row->id == $id ):?>class="currom"<?php endif?> href="<?php echo JRoute::_('index.php?option=com_content&view=article&layout=hrvkonsulenter&id='.$row->id);?>"><?php echo $row->title;?></a></div>
		<?php if($key < 3):?>
		<div class="float_left m10l"><img src="<?php echo $base_url;?>img/icon_omos.png" alt="" /></div>
		<?php endif;?>
	<?php endforeach;?>
	<div class="clear_left"></div>
</div>
<p class="p10t">
<?php if (isset ($this->article->toc)) : ?>
		<?php echo $this->article->toc; ?>
	<?php endif; ?>
	<?php echo $this->article->text; ?>
</p>
<?php if($this->article->id == 4 ):?>
{module hr_vejledning_employers}
<?php endif;?>
<div class="clear"></div>